// 表单样式设置

@import '../colorVar.less';

// title后面冒号的样式
.colon::after {
  content: ':';
  position: relative;
  top: -0.5px;
  margin: 0 8px 0 2px;
}
// title前面的必填星号
.lableRequire::before {
  display: inline-block;
  margin-right: 4px;
  content: '*';
  font-family: SimSun;
  line-height: 1;
  font-size: 14px;
  color: @form_star;
}

//input控件灰化
.ant-input-disabled {
  background-color: #f0f3f8 !important;
  color: rgba(0, 0, 0, 35%) !important;
}
.ant-input-disabled + span {
  color: rgba(0, 0, 0, 35%) !important;
}
// title换行
.labalWrap {
  .ant-legacy-form-item-label > label::after {
    content: none;
  }

  .ant-legacy-form-item-label {
    padding-top: 4px;
    line-height: 16px;
    padding-right: 8px;
    label {
      white-space: normal;
      word-break: break-all;
    }
  }
}

// help提示
.anticon-question-circle {
  color: @theme;
}

.ant-form-explain {
  font-size: 12px;
  position: absolute;
}

.ant-legacy-form {
  margin-bottom: 10px;
}

// title
.ant-legacy-form-label label {
  color: @text_main !important;
  font-size: 14px !important;
}

// 下拉列表和下拉树
// .ant-select-selection {
//   border-radius: 2px !important;
// }
// .ant-select-selection:hover {
//   border-color: @theme !important;
// }
// .ant-select-dropdown {
//   max-height: 250px !important;
// }
// .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected {
//   background-color: @text_sel_bg !important;
//   color: @text_sel_text !important;
// }
// .ant-select-dropdown-menu-item-selected {
//   color: @text_sel_text !important;
//   background-color: @text_sel_bg !important;
//   font-weight: 400 !important;
// }
// .ant-select-dropdown-menu-item-selected:hover {
//   background-color: @text_sel_bg !important;
//   font-weight: 400 !important;
// }

// complete
.ant-select-auto-complete.ant-select .ant-input {
  border-radius: 2px !important;
}
.ant-select-auto-complete.ant-select .ant-input:focus,
.ant-select-auto-complete.ant-select .ant-input:hover {
  border-color: @theme;
}
// input
.ant-input {
  border-radius: 2px !important;
}

// inputNumber
.ant-input-number {
  border-radius: 2px !important;
  width: 100%;
}

// 下拉树形
.ant-select-tree {
  font-size: 14px !important;
}

// 去掉form后的冒号
.ant-legacy-form-item-label > label::after {
  content: ' ';
}

// item元素的占位高度
.ant-legacy-form-item {
  margin-bottom: 10px;
}
.ant-row-space-around {
  justify-content: flex-start;
}
//formd的报错信息
.ant-legacy-form-item-control-wrapper .ant-legacy-form-item-control .ant-legacy-form-explain {
  font-size: 12px !important;
  position: absolute !important;
}
.ant-legacy-form-item-control-wrapper .has-error {
  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
    border: 1px solid @form_error;
  }
}
.has-error .ant-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: 1px solid @form_error;
}
.has-error .ant-select-focused .ant-select-selector {
  border-color: 1px solid @form_error;
}
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
  box-shadow: 0 0 0 0 rgba(24, 144, 255, 20%);
  outline: 0;
}
